body {
    /* 在html内上下左右居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: '微软雅黑';
    font-size: 14px;
    flex-direction: column;
}

body,
input {
    box-sizing: border-box;
    padding: 5px 20px 0 20px;
}

header {
    margin-bottom: 10px;
    width: 100%;
    max-width: 885px;
    display: flex;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(/SYH/img/10001.jpg) no-repeat center center;
    background-size: cover;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    align-items: center;
    height: 50px;
    font-size: 1.6rem;
    font-family: '宋体';
    color: #fff;
}

section {
    display: flex;
    height: 540px;
    width: 100%;
    max-width: 885px;
}

#showcase {
    margin-right: 10px;
    position: relative;
    width: calc(100% - 10px);
    max-width: 725px;
    background-color: #EDEDED;
    border-radius: 20px;
    background-size: cover;
    overflow: hidden;
}

#chatInputTextarea {
    /* 半透明 */
    opacity: 0.5;
    width: 100%;
}

textarea::-webkit-scrollbar {
    display: none;
    /* 适用于基于 WebKit 的浏览器（如 Chrome、Safari） */
}

textarea {
    -ms-overflow-style: none;
    /* 适用于 IE 和 Edge */
    scrollbar-width: none;
    /* 适用于 Firefox */
}

#user {
    position: relative;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 20px;
    flex: 3;
    background: url(/SYH/img/10001.jpg) no-repeat center center;
    background-size: cover;
}

.user_name {
    color: #fff;
    width: 100%;
    display: block;
    padding: 5px 0 5px 0;
    text-align: center;
    font-size: 15px;
}

.chat-message-status-btn {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.chat-message-status-btn input {
    border: none;
    background-color: #4D76A4;
    color: #fff;
    padding: 10px;
    width: 100px;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
}

#sendButton {
    background-color: aquamarine;
}

#close:hover {
    background-color: #c1e2ec;
}

#sendButton:hover {
    background-color: aqua;
}

.chat-message-status {
    box-sizing: border-box;
    text-align: center;
    color: white;
    position: absolute;
    width: 300px;
    height: 0;
    z-index: 99;
    top: 0;
    right: 107%;
    display: flex;
    border-radius: 20px;
    /* 背景磨砂半透明 */
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    overflow: hidden;
    align-content: stretch;
    flex-direction: column;
}

.chat-message-status>div:first-child {
    display: flex;
    justify-content: center;
}

.chat-message-status p {
    margin: 0px 0px 5px 0px;
    background-color: cadetblue;
    padding: 5px;
    border-radius: 10px 0px;
    word-wrap: break-word;
}

.chat-message-status>div:nth-of-type(2) {
    margin: 5px;
}

.chat-message-status img {
    width: 100%;
    height: 100%;
}

.chat-loading {
    position: fixed;
    width: 100%;
    height: 100%;
}

.chat-message-status>div:first-child .chat-message-status-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    margin: 5px 0;
}

#userList {
    -ms-overflow-style: none;
    /* 对于IE和Edge隐藏滚动条 */
    scrollbar-width: none;
    /* 对于Firefox隐藏滚动条 */
}

/* 添加媒体查询以适应不同屏幕尺寸 */
@media (max-width: 768px) {

    header,
    section,
    #showcase {
        max-width: 100%;
    }
}